Skip to content

HYPERFLEET-645 - fix: Change owned_reference to owner_references#13

Merged
openshift-merge-bot[bot] merged 1 commit intoopenshift-hyperfleet:mainfrom
Mischulee:HYPERFLEET-645
Feb 24, 2026
Merged

HYPERFLEET-645 - fix: Change owned_reference to owner_references#13
openshift-merge-bot[bot] merged 1 commit intoopenshift-hyperfleet:mainfrom
Mischulee:HYPERFLEET-645

Conversation

@Mischulee
Copy link
Contributor

@Mischulee Mischulee commented Feb 23, 2026

https://issues.redhat.com/browse/HYPERFLEET-645

Summary by CodeRabbit

  • Documentation

    • Updated the example NodePool cloud event payload—adjusted the naming of a reference field for consistency.
  • Chores

    • Added local development tool configuration to the repository ignore list.

@coderabbitai
Copy link

coderabbitai bot commented Feb 23, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1f0d58c and 96dba80.

📒 Files selected for processing (2)
  • .gitignore
  • example/cloudevent.example.nodepool.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • .gitignore

Walkthrough

Two unrelated, small changes: (1) In the example cloud event JSON for NodePool, the field owned_reference inside data was renamed to owner_references (no other structural changes); (2) .claude/ was added to .gitignore with a comment line "Claude Code local config" to exclude local configuration.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: renaming a field from owned_reference to owner_references, which is exactly what the changeset accomplishes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.claude/settings.local.json:
- Around line 1-10: The .claude/settings.local.json file was accidentally
committed and should be removed from the PR; either delete the file from the
branch or add the .claude/ directory to .gitignore and stop tracking the file so
local settings aren’t committed in future; specifically update .gitignore to
include ".claude/" (or remove the single file entry) and ensure
.claude/settings.local.json is removed from the commit history/index so it no
longer appears in the diff.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 81129ae and f8fc4e9.

📒 Files selected for processing (2)
  • .claude/settings.local.json
  • example/cloudevent.example.nodepool.json

@Mischulee
Copy link
Contributor Author

/retest

"href": "https://api.hyperfleet.com/v1/clusters/11111111-1111-1111-1111-111111111111/nodepools/22222222-2222-2222-2222-222222222222",
"generation": 5,
"owned_reference": {
"owner_references": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, I noticed that the https://github.com/openshift-hyperfleet/architecture/blob/main/hyperfleet/components/broker/asyncapi.yaml defines this field as owned_reference (singular) — it's listed as a required field in the ReconcileNodePool schema.

If the actual API returns owner_references, then we should also update the AsyncAPI spec to
stay in sync. Otherwise we'll have the example saying one thing and the spec saying another,
which is the same kind of inconsistency this PR is trying to fix.

Could we confirm against the real API response and, if needed, open a follow-up to update the
spec?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We confirmed the API uses owner_references in https://github.com/openshift-hyperfleet/hyperfleet-api-spec/blob/main/models/nodepools/model.tsp#L50.

Follow-up PRs were merged - updated the AsyncAPI spec, adapter code, and docs to match. Everything is now consistent.

@rafabene
Copy link
Contributor

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Feb 24, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rafabene

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 024ec6b into openshift-hyperfleet:main Feb 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants